function CreatEnumTable(tbl, index) 
	-- assert(type(tbl) == 'table') 
	local enumtbl = {} 
	local enumindex = index or 1 
	for i, v in ipairs(tbl) do 
		enumtbl[v] = enumindex + i - 1 
	end 
	return enumtbl 
end 

function Sleep(n)
   local ret, x, y = os.execute("sleep " .. n)
   if not ret then
	   os.exit(0)
   end
end
